package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BizRenyuanxinxiMapper;
import com.ruoyi.system.domain.BizRenyuanxinxi;
import com.ruoyi.system.service.IBizRenyuanxinxiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 人员信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Service
public class BizRenyuanxinxiServiceImpl implements IBizRenyuanxinxiService 
{
    @Autowired
    private BizRenyuanxinxiMapper bizRenyuanxinxiMapper;

    /**
     * 查询人员信息
     * 
     * @param sn 人员信息主键
     * @return 人员信息
     */
    @Override
    public BizRenyuanxinxi selectBizRenyuanxinxiBySn(Long sn)
    {
        return bizRenyuanxinxiMapper.selectBizRenyuanxinxiBySn(sn);
    }

    /**
     * 查询人员信息列表
     * 
     * @param bizRenyuanxinxi 人员信息
     * @return 人员信息
     */
    @Override
    public List<BizRenyuanxinxi> selectBizRenyuanxinxiList(BizRenyuanxinxi bizRenyuanxinxi)
    {
        return bizRenyuanxinxiMapper.selectBizRenyuanxinxiList(bizRenyuanxinxi);
    }

    /**
     * 新增人员信息
     * 
     * @param bizRenyuanxinxi 人员信息
     * @return 结果
     */
    @Override
    public int insertBizRenyuanxinxi(BizRenyuanxinxi bizRenyuanxinxi)
    {
        return bizRenyuanxinxiMapper.insertBizRenyuanxinxi(bizRenyuanxinxi);
    }

    /**
     * 修改人员信息
     * 
     * @param bizRenyuanxinxi 人员信息
     * @return 结果
     */
    @Override
    public int updateBizRenyuanxinxi(BizRenyuanxinxi bizRenyuanxinxi)
    {
        return bizRenyuanxinxiMapper.updateBizRenyuanxinxi(bizRenyuanxinxi);
    }

    /**
     * 批量删除人员信息
     * 
     * @param sns 需要删除的人员信息主键
     * @return 结果
     */
    @Override
    public int deleteBizRenyuanxinxiBySns(String sns)
    {
        return bizRenyuanxinxiMapper.deleteBizRenyuanxinxiBySns(Convert.toStrArray(sns));
    }

    /**
     * 删除人员信息信息
     * 
     * @param sn 人员信息主键
     * @return 结果
     */
    @Override
    public int deleteBizRenyuanxinxiBySn(Long sn)
    {
        return bizRenyuanxinxiMapper.deleteBizRenyuanxinxiBySn(sn);
    }
}
